/*
 * GuidePresenter.java
 * business
 *
 * Created by ChenTao on 2017/2/28.
 *
 * Copyright (c) 2017年 yidiandao. All rights reserved.
 */

package com.yidiandao.business.ui.guide;

import com.yidiandao.business.constant.Preferences;
import com.yidiandao.business.utils.PreferenceUtils;
import com.yidiandao.business.utils.UIUtils;

/** guide界面 */
public class GuidePresenter implements GuideContract.Presenter {

    private GuideContract.View mGuideView;

    public GuidePresenter(GuideContract.View view) {
        mGuideView = view;
        mGuideView.setPresenter(this);
    }

    @Override
    public void start() {
        //记录已进入guide一次
        PreferenceUtils.setBoolean(UIUtils.getContext(), Preferences.GUIDE_IS_SHOW, true, true);
    }
}
